''' 继承 '''


class Human():
    def say(self,words):
        print("人会说话：{}".format(words))


class Student(Human):
    def study(self,knowledge):
        print('学生学习：',knowledge)

    def say(self,words):
        print('我是学生')
        print('学生说话：',words)

class Teacher(Human):
    def teach(self,skill):
        print('老师教：',skill)


s = Student()

s.say('hi') # 如果子类和父类有同样的方法，但子类实现不同的功能那么就会覆盖
s.study('python')

Teacher.teach(Teacher(),'python')

print(Student.__base__)
print(Student.__class__)
print(s.__class__)